package com.zgjkhis.modules.charges.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author yxl
 * @Description
 * @Date 2021/7/19 10:50
 **/
@Data
@TableName("his_logistics")
@ApiModel(value = "物流信息", description = "物流信息")
public class Logistics {

    @TableId
    private Long id;

    @TableField(fill= FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "处方单号")
    private String orderNo;

    @ApiModelProperty(value = "药房id")
    private String pharmacyId;

    @ApiModelProperty(value = "业务订单号")
    private String bspOrderNo;

    @ApiModelProperty(value = "1为寄付，2为到付，寄付月结的payMethod传1,再传月结卡号即可,3为寄付转第三方")
    private Integer payMethod;

    @ApiModelProperty(value = "使用的顺丰产品类型 标快 2为顺丰标快（陆运），208为特惠专配，229为精温专递，232为精温专递（样本），233为精温专递（样本陆），采用其他产品请先咨询业务方)")
    private Integer expressType;

    @ApiModelProperty(value = "寄件人姓名")
    private String srcName;

    @ApiModelProperty(value = "寄件人电话（电话）")
    private String srcPhone;

    @ApiModelProperty(value = "寄件人省份")
    private String srcProvince;

    @ApiModelProperty(value = "寄件人城市")
    private String srcCity;

    @ApiModelProperty(value = "寄件人镇/区")
    private String srcDistrict;

    @ApiModelProperty(value = "寄件人详细地址")
    private String srcAddress;

    @ApiModelProperty(value = "收件人姓名")
    private String destName;

    @ApiModelProperty(value = "收件人电话（手机）")
    private String destPhone;

    @ApiModelProperty(value = "收件人省份")
    private String destProvince;

    @ApiModelProperty(value = "收件人城市")
    private String destCity;

    @ApiModelProperty(value = "收件人镇区")
    private String destDistrict;

    @ApiModelProperty(value = "收件人详细地址")
    private String destAddress;

    @ApiModelProperty(value = "件数，不填默认1")
    private Integer packagesNo;

    @ApiModelProperty(value = "寄托物名称")
    private String consignment;

    @ApiModelProperty(value = "产品code")
    private String productCode;

    @ApiModelProperty(value = "重量")
    private String parcelWeighs;

    @ApiModelProperty(value = "保价金额")
    private Long statementValue;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "顺丰单号")
    private String mailNo;

    @ApiModelProperty(value = "下次发货时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date nextDeliveryDate;

    @ApiModelProperty(value = "物流状态(0-待收货，1-已收货)")
    private Integer status;

    @ApiModelProperty(value = "收件人省行政编码")
    private String provinceCode;
    @ApiModelProperty(value = "收件人市行政编码")
    private String cityCode;
    @ApiModelProperty(value = "收件人区行政编码")
    private String areaCode;

    @ApiModelProperty(value = "发货人id")
    private String operateUserId;
    @ApiModelProperty(value = "发货人姓名")
    private String operateUser;
    @ApiModelProperty(value = "收货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date OperateTime;


    @ApiModelProperty(value = "取消发货人id")
    private String cancelOperateUserId;
    @ApiModelProperty(value = "取消发货人姓名")
    private String cancelOperateUser;
    @ApiModelProperty(value = "取消收货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date cancelOperateTime;

    @ApiModelProperty(value = "0:线上，1：线下")
    private Integer offline;
    @ApiModelProperty(value = "0:顺丰，1：其他")
    private Integer expressChannel;
    @ApiModelProperty(value = "物流名称:顺丰、邮政")
    private String expressName;

}
